package org.linlinjava.litemall.admin.wx.builder;


import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutImageMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutTextMessage;

/**
 * @author Binary Wang
 */
public class Msgbuilder extends AbstractBuilder {

  @Override
  public WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMessage,
		  WxMpService service) {
	  /*
	  //WxMpXmlOutImageMessage m = null;
	  String touser = wxMessage.getFromUser();
	  String mediaId = wxMessage.getMediaId();
	  if(WxConsts.KefuMsgType.TEXT.equals(replyType)) {
		  return WxMpXmlOutMessage.TEXT().content(content)
	      .fromUser(touser).toUser(touser)
	      .build();
	  } else if(WxConsts.KefuMsgType.IMAGE.equals(replyType)) {
		  return WxMpXmlOutMessage.IMAGE().toUser(touser).mediaId(mediaId).build();
	  }	else if(WxConsts.KefuMsgType.VOICE.equals(replyType)) {
		  return WxMpXmlOutMessage.VOICE().toUser(touser).mediaId(mediaId).build();
	  } else if(WxConsts.KefuMsgType.VIDEO.equals(replyType)) {
		  return WxMpXmlOutMessage.VIDEO().toUser(touser).mediaId(mediaId).build();
	  } else if(WxConsts.KefuMsgType.NEWS.equals(replyType)) {
		  return WxMpXmlOutMessage.NEWS().fromUser(touser).toUser(touser).build();
	  } else if(WxConsts.KefuMsgType.MPNEWS.equals(replyType)) {
		  return WxMpXmlOutMessage.
	  }*/
    return null;
  }

}
